﻿<%@ Page Language="C#" MasterPageFile="~/main.Master" AutoEventWireup="true" CodeBehind="default.aspx.cs"
    Inherits="PreguntaAlExperto._default" EnableTheming="True" Theme="mainTheme" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <meta name="verify-v1" content="P+nrbyT8Rfvf2/As0zW45mi90qSQOsjEEGniewsAaoI=" />
    <link href="http://www.preguntaalexperto.net/rss.aspx" title="Ultimos artículos"
        type="application/rss+xml" rel="alternate">
    <link href="http://www.preguntaalexperto.net/rss.aspx?q=10masvistos" title="Los 10 artículos más vistos"
        type="application/rss+xml" rel="alternate">
    <link href="http://www.preguntaalexperto.net/rss.aspx?q=10masvotados" title="Los 10 artículos mejor votados"
        type="application/rss+xml" rel="alternate">
    <script language="javascript" type="text/javascript">
    function getKey(e)
    {
        var characterCode;

        if(e && e.which)
        {
            e = e;
            characterCode = e.which;
        }
        else
        {
            e = event;
            characterCode = e.keyCode;
        }

        if(characterCode == 13)
        {
            SendComment();
            return false;
        }
        else
            return true;
    }
    
    function SendComment()
    {
        var _comment = document.getElementById("txtComment").value;
        var _AjaxHandler = new AjaxHandler("sendAComment.aspx?Comment=" + _comment, CaptureResponse);
        _AjaxHandler.SendRequest();
    }
    
    function CaptureResponse(_value)
    {
        document.getElementById("getComment").style.display = "none";
        document.getElementById("getCommented").style.display = "";
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" width="99%">
        <tr>
            <td width="1px" style="padding-bottom:2px;">
                <table border="0" cellpadding="0" cellspacing="0" style="width:582px; height:93;">
                    <tr>
                        <td><a href="publicar.aspx"><img src="images/minipublish.jpg" border="0" /></a></td>
                        <td><img src="images/theFish.jpg" /></td>
                        <td><a href="Preguntaalexperto.aspx"><img src="images/secPreguntas.jpg" border="0" /></a></td>
                        <td style="background-image:url('/images/commentBack.jpg'); width: 372px;">
                            <div style="padding-left:5px;  margin-top:15px" id="getComment">
                                <span style="font-family:Arial; font-size:smaller; font-weight:bold">Queremos saber tu opinión.<br /></span>
                                <span style="font-family:Arial; font-size:x-small;">¿Qué quisieras ver en el sitio?<br /><br /></span>
                                <input type="text" id="txtComment" style="width: 190px" 
                                    onkeypress="return getKey(event)" /><input type="button" value="Enviar" id="sendComment" onclick="SendComment();"/>
                            </div>
                            <div style="padding-left:5px; display:none;" id="getCommented">
                                <span style="font-family:Arial; font-size:smaller; font-weight:bold">Muchas gracias por tus comentarios.<br />Todas tus sugerencias serán tomadas en cuenta.</span>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
            <td valign="top" style="vertical-align: top;">
                <span class="title">
                    <img src="images/superRSS.jpg" style="border-top-width: 0px; border-left-width: 0px;
                        border-bottom-width: 0px; border-right-width: 0px;" align="left" /><a href="Rss.aspx">Últimos
                            atículos publicados</a><br />
                    <a href="Rss.aspx?q=10masvistos">Los 10 artículos más vistos</a><br />
                    <a href="Rss.aspx?q=10masvotados">Los 10 artículos mejor vistos</a></span>
            </td>
        </tr>
    </table>
    <table cellpadding="0" cellspacing="0" class="TableContainer">
        <tr>
            <td class="FirstFrame" valign="top">
                <div class="headerNewArticles">
                    <asp:Label ID="lblNewArticles" runat="server" Text=""></asp:Label>
                </div>
                <asp:DataList runat="server" ID="dataListNewArticles" RepeatColumns="2" ItemStyle-VerticalAlign="Top"
                    Width="100%" RepeatDirection="Horizontal" CellSpacing="5">
                    <ItemTemplate>
                        <div class="containerClass">
                            <a href='/articles/<%# DataBinder.Eval(Container.DataItem, "Path")%>'><span class="title">
                                <%# DataBinder.Eval(Container.DataItem, "Title")%></span></a>
                            <br />
                            <span class="body">
                                <%# DataBinder.Eval(Container.DataItem, "Short_Description")%></span>
                            <br />
                            <div class="AuthorFooter">
                                Autor:
                                <%# DataBinder.Eval(Container.DataItem, "PublisherEntity.Name")%>
                                <%# DataBinder.Eval(Container.DataItem, "Publish_Date", "{0:d}")%></div>
                        </div>
                    </ItemTemplate>
                    <ItemStyle Width="50%" />
                </asp:DataList>
            </td>
            <td class="SecondFrame" valign="top">
                <div class="headerTop10Articles">
                    <asp:Label ID="lblTop10Views" runat="server" Text=""></asp:Label></div>
                <asp:DataList runat="server" ID="dataListTopTenVisits" Width="100%">
                    <ItemTemplate>
                        <div class="containerClass">
                            <a href='/articles/<%# DataBinder.Eval(Container.DataItem, "Path")%>'><span class="SmallFontSize">
                                <%# DataBinder.Eval(Container.DataItem, "Title")%></span></a>
                            <!--div class="AuthorFooter">
                                Autor: <%# DataBinder.Eval(Container.DataItem, "PublisherEntity.Name")%>
                                <%# DataBinder.Eval(Container.DataItem, "Publish_Date", "{0:d}")%></div-->
                        </div>
                    </ItemTemplate>
                </asp:DataList>
                <br />
                <div class="headerTop10Votes">
                    <asp:Label ID="lblTop10Votes" runat="server" Text=""></asp:Label></div>
                <asp:DataList runat="server" ID="dataListTopTenVoted" Width="100%">
                    <ItemTemplate>
                        <div class="containerClass">
                            <a href='/articles/<%# DataBinder.Eval(Container.DataItem, "Path")%>'><span class="SmallFontSize">
                                <%# DataBinder.Eval(Container.DataItem, "Title")%></span></a>
                            <!--div class="AuthorFooter">
                                Autor: <%# DataBinder.Eval(Container.DataItem, "PublisherEntity.Name")%>
                                <%# DataBinder.Eval(Container.DataItem, "Publish_Date", "{0:d}")%></div-->
                        </div>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" align="center">
        <tr>
            <td>

                <script type="text/javascript"><!--
        google_ad_client = "pub-0764539371667310";
        /* 728x90, created 9/30/08 */
        google_ad_slot = "3694415334";
        google_ad_width = 728;
        google_ad_height = 90;
        //-->
                </script>

                <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

            </td>
        </tr>
    </table>
    <br />
</asp:Content>
